class OutClass{
    private int a;
    static int b;
    static int c;
    public void methodA(){
        a = 10;
        System.out.println(a);
    }

    public static void methodB(){
        System.out.println(b);
    }

    //静态内部类：被static修饰的成员内部类
    static class InnerClass{
        public void methodInner(){
            //在内部类中只能访问外部类的静态成员
            b = 200;
            methodB();


           /*OutClass outClass1 = new OutClass();
           outClass1.*/


        }
    }
}
public class demo2 {
    public static void main(String[] args) {
        OutClass.InnerClass innerClass1 = new OutClass.InnerClass();
        innerClass1.methodInner();
    }
}
